package com.yf.notify.modules.notify.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import java.util.Date;

/**
* <p>
* 消息记录实体类
* </p>
*
* @author 聪明笨狗
* @since 2022-11-08 10:54
*/
@Data
@TableName("el_msg_read")
public class MsgRead extends Model<MsgRead> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 消息ID
     */
    @TableField("msg_id")
    private String msgId;

    /**
     * 手机号或邮箱
     */
    private String receiver;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 消息类型1站内信2手机短信3社交媒体4电子邮件
     */
    @TableField("msg_type")
    private Integer msgType;

    /**
     * 已读状态
     */
    @TableField("read_state")
    private Integer readState;

    /**
     * 阅读时间
     */
    @TableField("read_time")
    private Date readTime;
    
}
